package com.imooc.api.controller.user;

import com.imooc.grance.result.GraceJsonResult;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 *
 * @auther Levi
 * @Date: 2021/03/21/21:17
 * @Description:
 */
@RequestMapping("appUser")
public interface AppUserMngControllerApi {

    @PostMapping("/queryAll")
    @ApiOperation(value = "查看所有的用户列表", notes = "查看所有的用户列表", httpMethod = "POST")
    public GraceJsonResult queryAll(@RequestParam String nickname, @RequestParam Integer status,
                                    @RequestParam Date startDate, @RequestParam Date endDate,
                                    @RequestParam Integer page, @RequestParam Integer pageSize
    );

    @PostMapping("/userDetail")
    @ApiOperation(value = "查看用户信息", notes = "查看用户信息", httpMethod = "POST")
    public GraceJsonResult userDetail(@RequestParam String userId);


    @PostMapping("/freezeUserOrNot")
    @ApiOperation(value = "冻结或者解冻用户", notes = "冻结或者解冻用户", httpMethod = "POST")
    public GraceJsonResult freezeUserOrNot(@RequestParam String userId,Integer doStatus);
}
